package com.yogurt.edu.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: 酸奶
 * @Date: 2020/07/02 17:05
 * @Description: 配置类
 */

@Configuration
@MapperScan("com.yogurt.edu.mapper")
@ComponentScan("com.yogurt")
public class MybatisPlusConfig {

/**
 * 分页插件
 */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
